package day05;

public class MethodDemo {
    public static void main(String[] args) {
        say("张三",78);
        System.out.println("请继续执行");
        talk();
        sayhi("lisi");
        sayhi("wyun");
        sayhello("hello",521);
        sayhello("dhai",89);
        sayhello1("wnagmazi",56);
        sayhello1("liyunlong",67);
        }



    public static void say(java.lang.String name,int age){
        System.out.println("大家好，我的名字叫楚门");
        System.out.println("大家好我叫"+name+"今年"+age+"岁了");

    }
    public static void sayhi(java.lang.String name){
        System.out.println("大家好，我的名字叫"+name);}
    public static void talk(){
        System.out.println("你好世界");
    }
    public static void sayhello(String name, int age){
        System.out.println("wo"+name+age);
    }
    public static void sayhello1(String name, int age){
        if(age>60){
            return;
        }
        System.out.println("我的名字是"+name+age);
    }
}
